From ca701f69c2610d51a2b4f6b62af9c127fb1336f0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 9 Sep 2019 14:23:20 +0000 Subject: [PATCH] fsck: Fix version in docs, tweak error text I think this error message is clearer. Closes: #1918 Approved by: jlebon --- src/libostree/ostree-repo.h | 2 +- src/ostree/ot-builtin-fsck.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libostree/ostree-repo.h b/src/libostree/ostree-repo.h index aaaaa622..40d3f773 100644 --- a/src/libostree/ostree-repo.h +++ b/src/libostree/ostree-repo.h @@ -255,7 +255,7 @@ gboolean ostree_repo_write_config (OstreeRepo *self, * @OSTREE_REPO_COMMIT_STATE_PARTIAL: One or more objects are missing from the * local copy of the commit, but metadata is present. (Since: 2015.7.) * @OSTREE_REPO_COMMIT_STATE_FSCK_PARTIAL: One or more objects are missing from the - * local copy of the commit, due to an fsck --delete. (Since: 2019.3.) + * local copy of the commit, due to an fsck --delete. (Since: 2019.4.) * * Flags representing the state of a commit in the local repository, as returned * by ostree_repo_load_commit(). diff --git a/src/ostree/ot-builtin-fsck.c b/src/ostree/ot-builtin-fsck.c index 44e98a76..5ad3bf38 100644 --- a/src/ostree/ot-builtin-fsck.c +++ b/src/ostree/ot-builtin-fsck.c @@ -456,7 +456,7 @@ ostree_builtin_fsck (int argc, char **argv, OstreeCommandInvocation *invocation, return glnx_throw (error, "Repository corruption encountered"); if (n_fsck_partial > 0) - return glnx_throw (error, "%u fsck deleted partial commits not verified", n_partial); + return glnx_throw (error, "%u partial commits from fsck-detected corruption", n_partial); return TRUE; } -- 2.30.2